package com.bite.demo.service;

import com.bite.demo.mapper.MessageInfoMapper;
import com.bite.demo.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;
    public Integer addMessage(MessageInfo messageInfo) {
        return messageInfoMapper.addMessage(messageInfo);
    }

    public List<MessageInfo> queryMessage() {
        return messageInfoMapper.queryMessage();
    }
}
